package com.rc.evcharger.service.rc;

import com.rc.evcharger.mapper.rc.RcMemberLevelSettingMapper;
import com.rc.evcharger.model.rc.RcMemberLevelSetting;
import com.rc.evcharger.model.rc.RcMemberLevelSettingExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RcMemberLevelSettingServiceImpl implements RcMemberLevelSettingService {
    @Autowired
    private RcMemberLevelSettingMapper rcMemberLevelSettingMapper;

    @Override
    public RcMemberLevelSettingMapper getMapper() {
        return rcMemberLevelSettingMapper;
    }

    @Override
    public List<RcMemberLevelSetting> listByDefault() {
        RcMemberLevelSettingExample example = new RcMemberLevelSettingExample();
        example.createCriteria().andStatusEqualTo("0");
        example.setOrderByClause("sort");
        return rcMemberLevelSettingMapper.selectByExample(example);
    }
}
